package ywpt.service.client;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.ClientKeshi;

public interface ClientKeshiService {

	public abstract ClientKeshi getClientKeshiById(Long id);

	public abstract String CreateCode(Long clientId);

	public abstract void saveClientKeshi(ClientKeshi clientKeshi, Long clientId);

	public abstract void updateClientKeshi(ClientKeshi clientKeshi,
			Long clientId);

	public abstract void removeClientKeshi(Long id);

	public abstract List<ClientKeshi> getClientKeshis(DetachedCriteria query);
	
	public abstract int getClientKeshiCountByName(String keshiName,Long clientId);
	
	public abstract List<ClientKeshi> getClientKeshiByKeshiName(String keshiName,Long clientId, int start, int size);

	public abstract String getKeshiDoorCode(Long id);
}
